using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication2.Models.Mapping
{
    public class sc_future_appMap : EntityTypeConfiguration<sc_future_app>
    {
        public sc_future_appMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.Datef)
                .HasMaxLength(30);

            this.Property(t => t.Timef)
                .HasMaxLength(17);

            this.Property(t => t.Id)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("sc_future_app");
            this.Property(t => t.Datef).HasColumnName("Datef");
            this.Property(t => t.date).HasColumnName("date");
            this.Property(t => t.Timef).HasColumnName("Timef");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.pat_id).HasColumnName("pat_id");
        }
    }
}
